package ru.ifmo.network;

import java.io.File;
import java.net.NetworkInterface;

/**
 * @author avhaliullin
 */
public class AppConfiguration {
    private final int listeningPort;
    private final int sendingPort;
    private final File dir;
    private final String hostName;
    private final NetworkInterface networkInterface;

    public AppConfiguration(int listeningPort, int sendingPort, File dir, String hostName, NetworkInterface networkInterface) {
        this.listeningPort = listeningPort;
        this.sendingPort = sendingPort;
        this.dir = dir;
        this.hostName = hostName;
        this.networkInterface = networkInterface;
    }

    public int getListeningPort() {
        return listeningPort;
    }

    public int getSendingPort() {
        return sendingPort;
    }

    public File getDir() {
        return dir;
    }

    public String getHostName() {
        return hostName;
    }

    public NetworkInterface getNetworkInterface() {
        return networkInterface;
    }
}
